package com.hmall.order.pojo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * TODO
 *
 * @Author whx
 * @Date 2024/11/15 21:45
 */
@Data
public class OrderDto {
    private Integer num;
    private Integer paymentType;
    private Long addressId;
    private Long itemId;

    @JsonCreator
    public OrderDto(@JsonProperty("num") Integer num,
                    @JsonProperty("paymentType") Integer paymentType,
                    @JsonProperty("addressId") Long addressId,
                    @JsonProperty("itemId")Long itemId) {
        this.num = num;
        this.paymentType = paymentType;
        this.addressId = addressId;
        this.itemId = itemId;
    }

}

